<?php

include("../jphpframework.php");

$dsn = array('host'=>'localhost',
			 'dbtype'=>'mysqli',
             'database'=>'jphpframework',
             'username'=>'jphpframework',
             'password'=>'jphpframework');

$db = new JDb($dsn);

$query = "SELECT * FROM user";
$res =& $db->select($query);

while($row =& $res->fetchRow(true)){
	echo $row['username']."<br>";
}